//
//  VegetableManager.h
//  Vegetables
//
//  Created by hpkj on 2020/1/17.
//  Copyright © 2020 Vegetables. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Vegetable.h"
NS_ASSUME_NONNULL_BEGIN

@interface VegetableManager : NSObject
+(instancetype)sharedInstance;
//查询蔬菜
-(NSArray *)vegetables;
//添加蔬菜
-(BOOL)addvegetable:(Vegetable *)vegetable;
//删除蔬菜
-(BOOL)removeVegetableWihtName:(NSString *)vegetableName;
//修改价格
-(BOOL)changePrice:(double )price  Name:(NSString *)vegName;
@end

NS_ASSUME_NONNULL_END
